package com.example.pojo.entitly;

import java.io.Serializable;
import java.util.Date;

/**
 * 班别表
 * @TableName class_category
 */
public class ClassCategory implements Serializable {
    /**
     * 班别id
     */
    private Long id;

    /**
     * 时间段
     */
    private String timeSlot;

    /**
     * 最大预约人数
     */
    private Integer maxnum;

    /**
     * 数据创建时间
     */
    private Date gmtCreate;

    /**
     * 数据最后修改时间
     */
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    /**
     * 班别id
     */
    public Long getId() {
        return id;
    }

    /**
     * 班别id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 时间段
     */
    public String getTimeSlot() {
        return timeSlot;
    }

    /**
     * 时间段
     */
    public void setTimeSlot(String timeSlot) {
        this.timeSlot = timeSlot;
    }

    /**
     * 最大预约人数
     */
    public Integer getMaxnum() {
        return maxnum;
    }

    /**
     * 最大预约人数
     */
    public void setMaxnum(Integer maxnum) {
        this.maxnum = maxnum;
    }

    /**
     * 数据创建时间
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * 数据创建时间
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * 数据最后修改时间
     */
    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * 数据最后修改时间
     */
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ClassCategory other = (ClassCategory) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTimeSlot() == null ? other.getTimeSlot() == null : this.getTimeSlot().equals(other.getTimeSlot()))
            && (this.getMaxnum() == null ? other.getMaxnum() == null : this.getMaxnum().equals(other.getMaxnum()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTimeSlot() == null) ? 0 : getTimeSlot().hashCode());
        result = prime * result + ((getMaxnum() == null) ? 0 : getMaxnum().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", timeSlot=").append(timeSlot);
        sb.append(", maxnum=").append(maxnum);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}